package com.xin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xin.entity.crm.MenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜单
 */
@Mapper
public interface MenuMapper extends BaseMapper<MenuEntity> {

    /**
     * 根据员工id查询该员工所拥有的菜单列表
     * @param employeeId
     * @return
     */
    List<MenuEntity> findEmployeeHasMenu(@Param("employeeId")Long employeeId);
}
